package BodyComponent;

public class Human {
    private AEyes humanEyes;
    private AFoot humanFoot;
    private AMouth humanMouth;

    public void SetEyes(AEyes eyes) {
        humanEyes = eyes;
    }

    public void SetFoot(AFoot foot) {
        humanFoot = foot;
    }

    public void SetMouth(AMouth mouth) {
        humanMouth = mouth;
    }

    public String GetHumanInfo() {
        return "我有一个:" + humanEyes.ShowName() + "的眼睛\n" +
                "一个:" + humanFoot.ShowName() + "\n" +
                "一个:" + humanMouth.ShowName();
    }
}
